package predictionEngine;

import java.util.Comparator;

public class ArrayComparer  implements Comparator<double[]>{
        private int attribute;

        public ArrayComparer(int attribute){
            this.attribute = attribute;
        }
        
        public int compare(double[] d1, double[] d2) {
            return Double.compare(d1[attribute],d2[attribute]);
        }
    }
